package com.yunhe.java.day10;

/**
 * Created by Administrator on 2017/8/3 0003.
 */
public class YiChang3 {
    public static void main(String[] args)  {
        YiChang3 y=new YiChang3();
        try {
            int b= y.div(2,0);
            System.out.println(b);
        }catch (Exception e){
            e.printStackTrace();
        }
        y.div(2);
    }

    public int div(int a,int b) {
//        try {
//              int b1= a/b;
//        }catch (Exception e){
//              System.out.println("处理异常")
       return a/b;

    }

    public int div(int a) {
        System.out.println(a);
        return  a;
    }
}
